package ru.spbau.goncharova.chat.client.clientMessages;

import ru.spbau.goncharova.chat.client.Client;
import ru.spbau.goncharova.chat.protocol.MessageType;
import ru.spbau.goncharova.chat.protocol.ProtocolFlags;
import ru.spbau.goncharova.chat.protocol.ProtocolHeader;

public class SendRequestMessage extends ClientMessage {

    public SendRequestMessage(String message, int id) {
        String messageWithId = id + message;
        data = messageWithId.getBytes(Client.CLIENT_CHARSET);
        header = new ProtocolHeader(new ProtocolFlags(0), MessageType.SEND_REQUEST, data);
    }
}
